<style>
    .form-group{
        margin-bottom: 20px;
    }

</style>

<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">选择酒店:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="hotels" data-rule="required" class="form-control" name="row[chid]" >
                <option value="0">请选择</option>
                {foreach name="hotels" item="vo"}
                <option value="{$vo.hid}">{$vo.hoteltitle}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group" id="rooms" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">选择房间:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="rooms2" data-rule="required" class="form-control selectpicker" name="row[crid][]" multiple></select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">开始时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cstime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[cstime]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">结束时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cetime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[cetime]" type="text" value="">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>


